package com.gong.DesignPattern.DecoratorPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/16 0016 9:11
 */
public class DecoratorShape extends Decorator{

    public DecoratorShape(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        super.draw();
        //设置边框
        setblankboder();
    }

    private void setblankboder() {
        System.out.println("变黑了");
    }
}
